package me.zhengjie.wechat.service;

import me.zhengjie.wechat.domain.AdvertisingType;
import me.zhengjie.wechat.service.dto.AdvertisingTypeDTO;
import me.zhengjie.wechat.service.dto.AdvertisingTypeQueryCriteria;
import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

/**
* @author Jiang yunxiao
* @date 2019-11-10
*/
public interface AdvertisingTypeService {

    /**
    * 查询数据分页
    * @param criteria 条件参数
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(AdvertisingTypeQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<AdvertisingTypeDTO>
    */
    List<AdvertisingTypeDTO> queryAll(AdvertisingTypeQueryCriteria criteria);

    /**
     * 根据ID查询
     * @param id ID
     * @return AdvertisingTypeDTO
     */
    AdvertisingTypeDTO findById(Long id);

    AdvertisingTypeDTO create(AdvertisingType resources);

    void update(AdvertisingType resources);

    void delete(Long id);

    void download(List<AdvertisingTypeDTO> all, HttpServletResponse response) throws IOException;
    /**
     *
     * 功能描述:查询广告类型列表
     * @param:
     * @return:
     * @auther: JiangYunXiao
     * @date: 2019/11/11 22:23
     */
    List<AdvertisingType> getList();
}